//
//  LZHorizontalBaseSubTableView.h
//  laziz_Merchant
//
//  Created by xbn_iMac on 2016/12/18.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MJRefresh.h"
@class LZCustomPlayerView;

@protocol LZHorizontalBaseSubTableViewDelegate <NSObject>

- (void)requestDateWithTag:(NSInteger)tag andPrameter:(NSDictionary*)prameter andPage:(int)page andLimit:(int)limit resultSuccess:(void (^)(NSArray *result, id otherObject))successBlock;

@optional

- (void)tableViewTag:(NSInteger)tag didSelectRowAtIndexPath:(NSIndexPath *)indexPath object:(id)object;

@end

@interface LZHorizontalBaseSubTableView : UITableView


/**
 用户视频播放
 */
@property (nonatomic, strong) LZCustomPlayerView *playerView;
@property (nonatomic, strong) NSIndexPath *currentPlayCellIndexPath;

/**
 商户id 用于商户优惠列表请求数据
 */
@property (nonatomic, strong) NSString *sellerId;


/**
 优惠列表区分状态的值==用于请求数据的state
 */
@property (nonatomic, assign) CouponListTitleStateCode couponListCode;

/**
 标记,是否是当前正在展示的tableview
 */
@property (nonatomic, assign) BOOL isCurrentShowingTable;

@property (nonatomic ,weak) id<LZHorizontalBaseSubTableViewDelegate> subTableViewDelegate;

/**
 校验是否有数据
 */
- (void)checkHaveData;

/**
 添加下拉刷新
 */
- (void)addHeaderRefresh;
- (void)upLoadMoreData;     // 上拉加载

/**
 添加上拉刷新
 */
- (void)addFooterRefresh;
- (void)downLoadNewData;    // 下拉刷新

/**
 离开页面,释放播放器内存
 */
- (void)releasePlayViewRAM;

@end
